<template>
    <v_promote v-if="!show_login" @need_login="handleNeedLogin($event)" />
    <v_login v-else />
</template>

<script setup lang="ts">
import { onMounted, ref } from 'vue'
import { useMainStore } from '@/utils/store'
import v_promote from './v_promote.vue'
import v_login from './v_login.vue'
const store = useMainStore()
const show_login = ref(false)
function handleNeedLogin(value: boolean) {
    show_login.value = value
}
onMounted(() => {
    store.fetchAppVersion()
})
</script>

<style lang="scss"></style>
